package io.xccit.race.mapper;

import java.util.List;
import io.xccit.race.domain.RaceCompetitionTeamMember;

/**
 * 团队报名成员Mapper接口
 * 
 * @author ywx
 * @date 2025-10-11
 */
public interface RaceCompetitionTeamMemberMapper 
{
    /**
     * 查询团队报名成员
     * 
     * @param id 团队报名成员主键
     * @return 团队报名成员
     */
    public RaceCompetitionTeamMember selectRaceCompetitionTeamMemberById(Long id);

    /**
     * 查询团队报名成员列表
     * 
     * @param raceCompetitionTeamMember 团队报名成员
     * @return 团队报名成员集合
     */
    public List<RaceCompetitionTeamMember> selectRaceCompetitionTeamMemberList(RaceCompetitionTeamMember raceCompetitionTeamMember);

    /**
     * 根据报名ID查询团队成员列表
     * 
     * @param signupId 报名ID
     * @return 团队成员集合
     */
    public List<RaceCompetitionTeamMember> selectTeamMembersBySignupId(Long signupId);

    /**
     * 新增团队报名成员
     * 
     * @param raceCompetitionTeamMember 团队报名成员
     * @return 结果
     */
    public int insertRaceCompetitionTeamMember(RaceCompetitionTeamMember raceCompetitionTeamMember);

    /**
     * 修改团队报名成员
     * 
     * @param raceCompetitionTeamMember 团队报名成员
     * @return 结果
     */
    public int updateRaceCompetitionTeamMember(RaceCompetitionTeamMember raceCompetitionTeamMember);

    /**
     * 删除团队报名成员
     * 
     * @param id 团队报名成员主键
     * @return 结果
     */
    public int deleteRaceCompetitionTeamMemberById(Long id);

    /**
     * 批量删除团队报名成员
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRaceCompetitionTeamMemberByIds(Long[] ids);

    /**
     * 根据报名ID删除所有团队成员
     * 
     * @param signupId 报名ID
     * @return 结果
     */
    public int deleteTeamMembersBySignupId(Long signupId);
}
